#pragma once

#include "resource.h"
#include "afxwin.h"
#include "afxcmn.h"
// CSetSpecDlg dialog

class CMainOrderPanel;
class CSetSpecDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CSetSpecDlg)

public:
	CSetSpecDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSetSpecDlg();

// Dialog Data
	enum { IDD = IDD_SET_SPEC };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CMainOrderPanel* m_pMainWnd;
	CButton m_cbStopQty;
	CButton m_cbTickLossCut;
	CButton m_cbTickProfitCut;
	CEdit m_edStopQty;
	CEdit m_edTickLossCut;
	CEdit m_edTickProfitCut;
	CSpinButtonCtrl m_spStopQty;
	CSpinButtonCtrl m_spTickLossCut;
	CSpinButtonCtrl m_spTickProfitCut;
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedCheckStopQty();
	afx_msg void OnBnClickedCheckTickLosscut();
	afx_msg void OnBnClickedCheckTickProfitcut();
	afx_msg void OnEnChangeEditStopQty();
	afx_msg void OnEnChangeEditTickLosscut();
	afx_msg void OnEnChangeEditTickProfitcut();
	CEdit m_EditRowHeight;
	CSpinButtonCtrl m_SpinRowHeight;
	afx_msg void OnEnChangeEditRowHeight();
	CEdit m_EditColWidth;
	CSpinButtonCtrl m_SpinColWidth;
	afx_msg void OnEnChangeEditColWidth();
	afx_msg void OnBnClickedCheckCnt();
	CButton m_cbCnt;
	afx_msg void OnBnClickedCheckOrderbyMouseon();
	CButton m_cbOrderByMouseOn;
};
